package com.anolesoft.amljmes.perm.service.token.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.Map;
@Mapper
public interface TokenMapper {
    /**
     * 根据传递的EID查询当前登录人的用户名
     * @param eid
     * @param factory_id
     * @return
     */
    @Select(" select b.username,b.mw from fac_employee a inner join sys_user b on a.objuid = b.emp_uid" +
            " where a.emp_id = #{eid, jdbcType=VARCHAR} and a.fac_code = #{factory_id, jdbcType=VARCHAR} ")
    Map<String,String> sysNameByEid(@Param("eid") String eid, @Param("factory_id") String factory_id);
}
